package cn.ylz.ylmall.aftersale.service;


import cn.ylz.ylmall.aftersale.pojo.request.AfterSaleReq;
import cn.ylz.ylmall.aftersale.pojo.vo.AfterSaleVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author pc
 */
public interface AfterSaleService {
    /**
     * 添加售后
     * @param afterSaleReq
     * @param userId
     * @return
     */
    int insertAfterSale(AfterSaleReq afterSaleReq, Long userId);

    /**
     * 查询售后
     * @param userId
     * @return
     */
    List<AfterSaleVO> selectAfterSale(Long userId);

    /**
     * 后台分页查询
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo selectAfterSalePage(Integer pageNum,Integer pageSize);

    int delectByOrderNo(String orderNo);
}
